#ifndef CLICK_IGMPQUERYMESSAGE_H
#define CLICK_IGMPQUERYMESSAGE_H

CLICK_DECLS

    /**
     * @date created: 5/10/2009
     * @brief Defines the "Membership Query Message" format for IGMPv3 (p.9 in rfc3376)
     */

    struct MembershipQueryMessage {
    	MembershipQueryMessage(): type(0x11), nos(0){};
    	
	    uint8_t type;
	    uint8_t maxrespcode;
	    uint16_t checksum;
	    in_addr groupaddr;
	    uint8_t resvsqrv;//Stores "Resv", "S" and "QRV"
	    uint8_t qqic;
	    uint16_t nos;
	    in_addr sourceaddrs[];
    };

CLICK_ENDDECLS

#endif
